<?php

class Home extends Module
{
    
    function display($view='index')
    {
        parent::smartyOut( $view );
    }
    
    function view()
    {
        $view = $this->getParam( 'view', 'demo.html' );
        parent::display( $view );
    }
    
    function tools()
    {
        //echo json_encode(array('hlk'));exit;
        $obj = Preload::getInstance();
        $modules = $obj->getTools();        
        echo json_encode( $modules );
    }
}
